#include "../../include/strategy/CoinPrice.h"

std::vector<int>& CoinPrice::readPriceAndCount(Coin coin)
{
    std::lock_guard<std::mutex> lock(m_mutex);
    return recordPrice[coin];
}

void CoinPrice::updataPrice(Coin coin, int price)
{
    std::lock_guard<std::mutex> lock(m_mutex);
    recordPrice[coin][0] = price;
}